package com.seagull.core.test.desing.zerenlian;

/**
 * @author:jian.zhou
 * @DATE: 2017/12/29.
 * @Version:0.0.1
 * @Desc:部门领导
 */
public class Leader extends LeaveHandle {

    @Override
    public void leave( int day) {
        if ( day <= 1 ){
            System.out.println("请假一天，部门经理同意，结束");
        }else {
            System.out.println(" 我部门经理同意  请CTO处理");
            if ( this.getLeaveHandle() != null ){
                this.getLeaveHandle().leave( day );
            }
        }
    }
}
